/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author tien
 */
import javax.microedition.lcdui.game.GameCanvas;
import javax.microedition.lcdui.game.Sprite;
import java.util.Vector;

public class BulletController extends Controller{
    public BulletController(Moveable moveable) {
        super(moveable);
    }
    
    public void update() {
        //moving with the last direction
        this.moveable.keepMoving();
        boolean canmove = moveable.checkCollideAndSolve();
        if (!canmove) {
            this.moveable.die();
        }
    }
}
